BDFS = $(wildcard *.bdf)
PCFS = $(BDFS:%.bdf=%.pcf)
OTBS = $(BDFS:%.bdf=%.otb)

all: pcfs otbs

pcfs: $(PCFS)

$(PCFS): %.pcf: %.bdf
	bdftopcf -o $@ $^

otbs: $(OTBS)

$(OTBS): %.otb: %.bdf
	fonttosfnt -o $@ $^

clean:
	rm -f *.pcf
	rm -f *.otb

.PHONY: all clean
